<template>
  <div>
    <RoleList v-if="showList" @changeShow="changeShow" />
    <Auth :roleItemData="roleItemData" @changeShow="changeShow" v-else />
  </div>
</template>

<script>
import RoleList from "./components/RoleList.vue";
import Auth from "./components/Auth";
export default {
  name: "Role",
  components: {
    RoleList,
    Auth
  },
  data() {
    return {
      showList: true,
      roleItemData: {}
    };
  },
  methods: {
    changeShow(bol, data) {
      this.showList = bol;
      this.roleItemData = data;
    }
  }
};
</script>

<style></style>
